export default {
  panels: [
    {
      index: 0,
      name: 1,
      height: 147.6,
      width: 210,
      paperHeader: 0,
      paperFooter: 396,
      printElements: [
        {
          options: {
            left: 150,
            top: 21,
            height: 17,
            width: 279,
            testData: '单据表头',
            fontSize: 16.5,
            fontWeight: '700',
            textAlign: 'center',
            hideTitle: true,
            title: '唐山曹妃甸文丰码头有限公司',
            right: 427.5,
            bottom: 42.5,
            vCenter: 288,
            hCenter: 34,
            coordinateSync: false,
            widthHeightSync: false,
            qrCodeLevel: 0
          },
          printElementType: { title: '单据表头', type: 'text' }
        },
        {
          options: {
            left: 453,
            top: 39,
            height: 16,
            width: 139.5,
            field: 'statementNo',
            testData: 'WFJSC2112082170040',
            fontSize: 6.75,
            fontWeight: '700',
            textContentVerticalAlign: 'middle',
            title: 'NO',
            right: 512.25,
            bottom: 55,
            vCenter: 482.25,
            hCenter: 47,
            coordinateSync: false,
            widthHeightSync: false,
            qrCodeLevel: 0
          },
          printElementType: { title: '订单编号', type: 'text' }
        },
        {
          options: {
            left: 148.5,
            top: 42,
            height: 17,
            width: 279,
            testData: '单据表头',
            fontSize: 16.5,
            fontWeight: '700',
            textAlign: 'center',
            hideTitle: true,
            title: '船舶港杂费结算单',
            right: 426.99609375,
            bottom: 61.49609375,
            vCenter: 287.49609375,
            hCenter: 52.99609375,
            coordinateSync: false,
            widthHeightSync: false,
            qrCodeLevel: 0
          },
          printElementType: { title: '单据表头', type: 'text' }
        },
        {
          options: {
            left: 202.5,
            top: 58.5,
            height: 16,
            width: 175.5,
            title: '船名',
            fontSize: 6.75,
            fontWeight: '700',
            textContentVerticalAlign: 'middle',
            right: 408.24609375,
            bottom: 74.74609375,
            vCenter: 305.49609375,
            hCenter: 66.74609375,
            field: 'shipName',
            testData: '恒泰3',
            coordinateSync: false,
            widthHeightSync: false,
            qrCodeLevel: 0
          },
          printElementType: { title: '库管签字', type: 'text' }
        },
        {
          options: {
            left: 409.5,
            top: 58.5,
            height: 16,
            width: 60,
            field: 'tradeType',
            testData: '内贸',
            fontSize: 6.75,
            fontWeight: '700',
            textContentVerticalAlign: 'middle',
            title: '类型',
            right: 469.5,
            bottom: 74.5,
            vCenter: 439.5,
            hCenter: 66.5,
            coordinateSync: false,
            widthHeightSync: false,
            qrCodeLevel: 0
          },
          printElementType: { title: '订单编号', type: 'text' }
        },
        {
          options: {
            left: 493.5,
            top: 58.5,
            height: 16,
            width: 100.5,
            field: 'leaveBerthTime',
            testData: '2020-01-01',
            fontSize: 6.75,
            fontWeight: '700',
            textContentVerticalAlign: 'middle',
            title: '离港',
            right: 608.25,
            bottom: 76,
            vCenter: 558,
            hCenter: 68,
            coordinateSync: false,
            widthHeightSync: false,
            qrCodeLevel: 0
          },
          printElementType: { title: '业务日期', type: 'text' }
        },
        {
          options: {
            left: 4.5,
            top: 58.5,
            height: 16,
            width: 205.5,
            title: '结算单位',
            fontSize: 6.75,
            fontWeight: '700',
            textContentVerticalAlign: 'middle',
            right: 210,
            bottom: 74.5,
            vCenter: 107.25,
            hCenter: 66.5,
            field: 'payCompanyName',
            testData: '天津恒润物流有限公司',
            coordinateSync: false,
            widthHeightSync: false,
            qrCodeLevel: 0
          },
          printElementType: { title: '库管签字', type: 'text' }
        },
        {
          options: {
            left: 4.5,
            top: 75,
            height: 72,
            width: 589.5,
            field: 'table',
            textAlign: 'center',
            footerFormatter: (options, rows, data, currentPageGridRowsData) => {
              if (data && data['totalAmount']) {
                return `<tr><td style="padding:0 10px" colspan="1">备注</td><td style="padding:0 10px" colspan="5"></td><td style="padding:0 10px" colspan="1"></td><td style="padding:0 10px" colspan="1">${data['totalAmount']}</td><td style="padding:0 10px" colspan="1">${data['totalAmount']}</td><td style="padding:0 10px" colspan="1">${data['totalAmount']}</td></tr><tr><td style="padding:0 10px" colspan="2">总计金额(大写)</td><td style="padding:0 10px" colspan="7">${data['totalAmountBig']}</td><td style="padding:0 10px" colspan="1">${data['totalAmount']}</td></tr>`
              }
              return `<tr><td style="padding:0 10px" colspan="1">备注</td><td style="padding:0 10px" colspan="5"></td><td style="padding:0 10px" colspan="1"></td><td style="padding:0 10px" colspan="1"></td><td style="padding:0 10px" colspan="1"></td><td style="padding:0 10px" colspan="1"></td></tr><tr><td style="padding:0 10px" colspan="2">总计金额(大写)</td><td style="padding:0 10px" colspan="7"></td><td style="padding:0 10px" colspan="1"></td></tr>`
            },
            right: 555.25,
            bottom: 147,
            vCenter: 280.25,
            hCenter: 111,
            tableHeaderBackground: '#ffffff',
            coordinateSync: false,
            widthHeightSync: false,
            columns: [
              [
                {
                  width: 49.211951864196294,
                  title: '序号',
                  field: 'index',
                  checked: true,
                  columnId: 'name',
                  fixed: false,
                  rowspan: 1,
                  colspan: 1,
                  align: 'left',
                  tableColumnHeight: '30',
                  tableTextType: 'text',
                  tableBarcodeMode: 'CODE128A',
                  tableQRCodeLevel: 0,
                  tableSummaryTitle: true,
                  tableSummary: ''
                },
                {
                  width: 49.211951864196294,
                  title: '费用名称',
                  field: 'rateItemName',
                  checked: true,
                  columnId: 'gender',
                  fixed: false,
                  rowspan: 1,
                  colspan: 1,
                  tableColumnHeight: '30',
                  tableTextType: 'text',
                  tableBarcodeMode: 'CODE128A',
                  tableQRCodeLevel: 0,
                  tableSummaryTitle: true,
                  tableSummary: ''
                },
                {
                  width: 49.211951864196294,
                  title: '货类',
                  field: 'cargoTypeName',
                  checked: true,
                  columnId: 'count',
                  fixed: false,
                  rowspan: 1,
                  colspan: 1,
                  tableColumnHeight: '30',
                  tableTextType: 'text',
                  tableBarcodeMode: 'CODE128A',
                  tableQRCodeLevel: 0,
                  tableSummaryTitle: true,
                  tableSummary: ''
                },
                {
                  width: 49.211951864196294,
                  title: '计量单位',
                  field: 'unitName',
                  checked: true,
                  columnId: 'amount',
                  fixed: false,
                  rowspan: 1,
                  colspan: 1,
                  tableColumnHeight: '30',
                  tableTextType: 'text',
                  tableBarcodeMode: 'CODE128A',
                  tableQRCodeLevel: 0,
                  tableSummaryTitle: true,
                  tableSummary: ''
                },
                {
                  width: 53.43159709971548,
                  title: '单价',
                  checked: true,
                  field: 'rate',
                  fixed: false,
                  rowspan: 1,
                  colspan: 1,
                  tableColumnHeight: '30',
                  tableTextType: 'text',
                  tableBarcodeMode: 'CODE128A',
                  tableQRCodeLevel: 0,
                  tableSummaryTitle: true,
                  tableSummary: ''
                },
                {
                  width: 45.68227192209177,
                  title: '数量',
                  checked: true,
                  field: 'quantity',
                  fixed: false,
                  rowspan: 1,
                  colspan: 1,
                  tableColumnHeight: '30',
                  tableTextType: 'text',
                  tableBarcodeMode: 'CODE128A',
                  tableQRCodeLevel: 0,
                  tableSummaryTitle: true,
                  tableSummary: ''
                },
                {
                  width: 39.056851773855115,
                  title: '天/次',
                  checked: true,
                  field: 'quantityPlug',
                  fixed: false,
                  rowspan: 1,
                  colspan: 1,
                  tableColumnHeight: '30',
                  tableTextType: 'text',
                  tableBarcodeMode: 'CODE128A',
                  tableQRCodeLevel: 0,
                  tableSummaryTitle: true,
                  tableSummary: ''
                },
                {
                  width: 33.39233375009078,
                  title: '金额',
                  checked: true,
                  field: 'amount',
                  fixed: false,
                  rowspan: 1,
                  colspan: 1,
                  tableColumnHeight: '30',
                  tableTextType: 'text',
                  tableBarcodeMode: 'CODE128A',
                  tableQRCodeLevel: 0,
                  tableSummaryTitle: true,
                  tableSummary: ''
                },
                {
                  width: 85.49673676577227,
                  field: 'totalAmount',
                  title: '合计金额',
                  checked: true,
                  fixed: false,
                  rowspan: 1,
                  colspan: 1,
                  tableColumnHeight: '30',
                  tableTextType: 'text',
                  tableBarcodeMode: 'CODE128A',
                  tableQRCodeLevel: 0,
                  tableSummaryTitle: true,
                  tableSummary: ''
                },
                {
                  width: 62.49548125573169,
                  title: '备注',
                  checked: true,
                  fixed: false,
                  field: 'remark',
                  rowspan: 1,
                  colspan: 1,
                  tableColumnHeight: '30',
                  tableTextType: 'text',
                  tableBarcodeMode: 'CODE128A',
                  tableQRCodeLevel: 0,
                  tableSummaryTitle: true,
                  tableSummary: ''
                }
              ]
            ]
          },
          printElementType: {
            title: '表格',
            type: 'table',
            editable: true,
            columnDisplayEditable: true,
            columnDisplayIndexEditable: true,
            columnTitleEditable: true,
            columnResizable: true,
            columnAlignEditable: true,
            isEnableEditField: true,
            isEnableContextMenu: true,
            isEnableInsertRow: true,
            isEnableDeleteRow: true,
            isEnableInsertColumn: true,
            isEnableDeleteColumn: true,
            isEnableMergeCell: true
          }
        },
        {
          options: {
            left: 142.5,
            top: 151.5,
            height: 16,
            width: 100.5,
            field: 'invoiceDate',
            testData: '2020-01-01',
            fontSize: 6.75,
            fontWeight: '700',
            textContentVerticalAlign: 'middle',
            title: '计费',
            right: 244.74609375,
            bottom: 381.49609375,
            vCenter: 194.49609375,
            hCenter: 373.49609375,
            coordinateSync: false,
            widthHeightSync: false,
            qrCodeLevel: 0
          },
          printElementType: { title: '业务日期', type: 'text' }
        },
        {
          options: {
            left: 411,
            top: 151.5,
            height: 16,
            width: 64.5,
            testData: '',
            fontSize: 6.75,
            fontWeight: '700',
            textContentVerticalAlign: 'middle',
            title: '审核：',
            right: 480.99609375,
            bottom: 383.74609375,
            vCenter: 450.99609375,
            hCenter: 375.74609375,
            coordinateSync: false,
            widthHeightSync: false,
            qrCodeLevel: 0
          },
          printElementType: { title: '订单编号', type: 'text' }
        },
        {
          options: {
            left: 501,
            top: 151.5,
            height: 16,
            width: 66,
            testData: '',
            fontSize: 6.75,
            fontWeight: '700',
            textContentVerticalAlign: 'middle',
            title: '复核：',
            right: 570,
            bottom: 185.5,
            vCenter: 537,
            hCenter: 177.5,
            coordinateSync: false,
            widthHeightSync: false,
            qrCodeLevel: 0
          },
          printElementType: { title: '订单编号', type: 'text' }
        },
        {
          options: {
            left: 6,
            top: 151.5,
            height: 16,
            width: 60,
            field: 'userName',
            testData: '张鑫',
            fontSize: 6.75,
            fontWeight: '700',
            textContentVerticalAlign: 'middle',
            title: '制表',
            right: 66.99609375,
            bottom: 383.74609375,
            vCenter: 36.99609375,
            hCenter: 375.74609375,
            coordinateSync: false,
            widthHeightSync: false,
            qrCodeLevel: 0
          },
          printElementType: { title: '订单编号', type: 'text' }
        }
      ],
      paperNumberLeft: 577.5,
      paperNumberTop: 400.5,
      paperNumberDisabled: true
    }
  ]
}
